package example;

import java.util.ArrayList;

/**
 * 具体聚合：婺源景点集
 *
 * @author zhang he qiang
 */
public class WyViewSpotSet implements ViewSpotSet{
    private ArrayList<WyViewSpot> list=new ArrayList<WyViewSpot>();
    public void add(WyViewSpot obj)
    {
        list.add(obj);
    }
    public void remove(WyViewSpot obj)
    {
        list.remove(obj);
    }
    public ViewSpotIterator getIterator()
    {
        return(new WyViewSpotIterator(list));
    }
}
